<?php

/**
 * UserController
 * 
 * @author
 * @version 
 */

require_once 'Zend/Controller/Action.php';

class UsersController extends Zend_Controller_Action {
	/**
	 * The default action - show the home page
	 */
	
	public function preDispatch() {
	if (!Zend_Auth::getInstance()->hasIdentity()) {
      	$this->_redirect('/login');
      } else {
      	$config = Zend_Registry::get ( 'config' );
      	$this->_session = new Zend_Session_Namespace ( $config->session->namespace );
		$this->_usuario = $this->_session->storage;
       	$this->view->logado = 1;
      }	
	}
	
	public function indexAction() {
		// TODO Auto-generated UserController::indexAction() default action
	}
		
	private function _configureAuth(Zend_Db_Adapter_Abstract $dbAdapter) {
		
	}

}
?>